//
//  StylistListTableViewCell.m
//  MyDIYHouse
//
//  Created by dlios on 15-6-29.
//  Copyright (c) 2015年 李平洋. All rights reserved.
//

#import "StylistListTableViewCell.h"

@implementation StylistListTableViewCell

- (void)dealloc
{

    [self.picImageView release];
    [self.nameLabel release];
    [self.fourinformationLabel release];
    [self.photoLabel release];
    [self.photoNumLabel release];
    [self.projectLabel release];
    [self.projectNumLabel release];
    [self.ideabookLabel release];
    [self.ideabookNumLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.picImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.picImageView];
        [self.picImageView release];
        
        self.nameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.nameLabel];
        self.nameLabel.font = [UIFont systemFontOfSize:14];
        [self.nameLabel release];
        
        self.fourinformationLabel = [[UILabel alloc] init];[[UILabel alloc] init];
        [self.contentView addSubview:self.fourinformationLabel];
        self.fourinformationLabel.font = [UIFont systemFontOfSize:12];
        [self.fourinformationLabel release];
        
        
        self.photoLabel = [[UILabel alloc] init];
        self.photoLabel.text = @"照片:";
        self.photoLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.photoLabel];
        [self.photoLabel release];
        
        self.photoNumLabel =[[UILabel alloc] init];
        self.photoNumLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.photoNumLabel];
        self.photoNumLabel.textColor = [UIColor blueColor];
        [self.photoNumLabel release];
        
        self.projectLabel = [[UILabel alloc] init];
        self.projectLabel.text = @"案例:";
        self.projectLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.projectLabel];
        [self.projectLabel release];
        
        self.projectNumLabel = [[UILabel alloc] init];
        self.projectNumLabel.font = [UIFont systemFontOfSize:12];
        self.projectNumLabel.textColor = [UIColor blueColor];
        [self.contentView addSubview:self.projectNumLabel];
        [self.projectNumLabel release];
        
        self.ideabookLabel = [[UILabel alloc] init];
        self.ideabookLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.ideabookLabel];
        self.ideabookLabel.text = @"灵感集:";
        [self.ideabookLabel release];
        
        self.ideabookNumLabel =[[UILabel alloc] init];
        self.ideabookNumLabel.textColor = [UIColor blueColor];
        [self.contentView addSubview:self.ideabookNumLabel];
        self.ideabookNumLabel.font = [UIFont systemFontOfSize:12];
        [self.ideabookNumLabel release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.picImageView.frame = CGRectMake(10, 10, 90, 90);
    self.nameLabel.frame = CGRectMake(120, 20, 180, 20);
    self.fourinformationLabel.frame = CGRectMake(120, 50, 180, 15);
    self.photoLabel.frame = CGRectMake(120, 80, 30, 15);
    self.photoNumLabel.frame = CGRectMake(155, 80, 22, 15);
    self.projectLabel.frame = CGRectMake(183, 80, 30, 15);
    self.projectNumLabel.frame = CGRectMake(218, 80, 20, 15);
    self.ideabookLabel.frame = CGRectMake(243, 80, 40, 15);
    self.ideabookNumLabel.frame = CGRectMake(288, 80, 20, 15);
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
